package com.ruoyi.project.digital.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.digital.mapper.MoodPetMapper;
import com.ruoyi.project.digital.domain.MoodPet;
import com.ruoyi.project.digital.service.IMoodPetService;

/**
 * 心情宠物关联Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-10-28
 */
@Service
public class MoodPetServiceImpl extends ServiceImpl<MoodPetMapper, MoodPet> implements IMoodPetService
{

    /**
     * 查询心情宠物关联
     * 
     * @param id 心情宠物关联ID
     * @return 心情宠物关联
     */
    @Override
    public MoodPet selectMoodPetById(Long id)
    {
        return baseMapper.selectMoodPetById(id);
    }

    /**
     * 查询心情宠物关联列表
     * 
     * @param moodPet 心情宠物关联
     * @return 心情宠物关联
     */
    @Override
    public List<MoodPet> selectMoodPetList(MoodPet moodPet)
    {
        return baseMapper.selectMoodPetList(moodPet);
    }

    /**
     * 新增心情宠物关联
     * 
     * @param moodPet 心情宠物关联
     * @return 结果
     */
    @Override
    public int insertMoodPet(MoodPet moodPet)
    {
        return baseMapper.insertMoodPet(moodPet);
    }

    /**
     * 修改心情宠物关联
     * 
     * @param moodPet 心情宠物关联
     * @return 结果
     */
    @Override
    public int updateMoodPet(MoodPet moodPet)
    {
        return baseMapper.updateMoodPet(moodPet);
    }

    /**
     * 批量删除心情宠物关联
     * 
     * @param ids 需要删除的心情宠物关联ID
     * @return 结果
     */
    @Override
    public int deleteMoodPetByIds(Long[] ids)
    {
        return baseMapper.deleteMoodPetByIds(ids);
    }

    /**
     * 删除心情宠物关联信息
     * 
     * @param id 心情宠物关联ID
     * @return 结果
     */
    @Override
    public int deleteMoodPetById(Long id)
    {
        return baseMapper.deleteMoodPetById(id);
    }
}
